<template>
  <div class="not-found-page">
    <!-- 顶部导航栏 -->
    <header class="header">
      <div class="container">
        <div class="header-content">
          <div class="logo" @click="$router.push('/')" style="cursor: pointer;">
            <span>视分享商城</span>
          </div>
          <div class="search-box">
            <input type="text" placeholder="搜索商品..." class="search-input">
            <button class="search-btn"><i class="fas fa-search"></i></button>
          </div>
          <div class="header-actions">
            <button class="btn btn-secondary login-btn">
              <i class="fas fa-user"></i>
              登录
            </button>
            <button class="btn btn-secondary order-btn">
              <i class="fas fa-clipboard-list"></i>
              订单
            </button>
          </div>
        </div>
      </div>
    </header>

    <!-- 主要内容 -->
    <main class="main">
      <div class="container">
        <div class="not-found-content">
          <div class="error-illustration">
            <i class="fas fa-exclamation-triangle"></i>
          </div>
          <h1 class="error-title">404</h1>
          <h2 class="error-subtitle">页面未找到</h2>
          <p class="error-description">
            抱歉，您访问的页面不存在或已被移除。
          </p>
          <div class="error-actions">
            <button class="btn btn-primary" @click="$router.push('/')">
              <i class="fas fa-home"></i>
              返回首页
            </button>
            <button class="btn btn-secondary" @click="$router.go(-1)">
              <i class="fas fa-arrow-left"></i>
              返回上页
            </button>
          </div>
        </div>
      </div>
    </main>

    <!-- 底部信息 -->
    <footer class="footer">
      <div class="container">
        <div class="footer-bottom">
          <p>&copy; blogshare.com 版权所有 | 浙公网安备33011002014818号 | <a href="#" class="footer-link">软件许可协议</a> | <a href="#" class="footer-link">用户服务协议</a></p>
        </div>
      </div>
    </footer>
  </div>
</template>

<script setup lang="ts">
// 组件逻辑
</script>

<style scoped>
.not-found-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.not-found-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 0;
  text-align: center;
}

.error-illustration {
  font-size: 120px;
  color: #667eea;
  margin-bottom: 30px;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

.error-title {
  font-size: 72px;
  font-weight: 700;
  color: #2d3436;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.error-subtitle {
  font-size: 32px;
  font-weight: 600;
  color: #2d3436;
  margin-bottom: 20px;
}

.error-description {
  font-size: 18px;
  color: #636e72;
  margin-bottom: 40px;
  max-width: 500px;
  line-height: 1.6;
}

.error-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.error-actions .btn {
  min-width: 150px;
}

@media (max-width: 768px) {
  .not-found-content {
    padding: 60px 0;
  }
  
  .error-illustration {
    font-size: 80px;
  }
  
  .error-title {
    font-size: 48px;
  }
  
  .error-subtitle {
    font-size: 24px;
  }
  
  .error-description {
    font-size: 16px;
  }
  
  .error-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .error-actions .btn {
    width: 200px;
  }
}
</style> 